import request from '@/utils/request'

// 查询资产权限列表
export function listAssets_permission(query) {
  return request({
    url: '/ora/assets_permission/list',
    method: 'get',
    params: query
  })
}

// 查询资产权限详细
export function getAssets_permission(id) {
  return request({
    url: '/ora/assets_permission/' + id,
    method: 'get'
  })
}

// 新增资产权限
export function addAssets_permission(data) {
  return request({
    url: '/ora/assets_permission',
    method: 'post',
    data: data
  })
}

// 修改资产权限
export function updateAssets_permission(data) {
  return request({
    url: '/ora/assets_permission',
    method: 'put',
    data: data
  })
}

// 删除资产权限
export function delAssets_permission(id) {
  return request({
    url: '/ora/assets_permission/' + id,
    method: 'delete'
  })
}
